﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="徐汉权._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <p>数据源</p>
<asp:GridView ID="Gv_One" runat="server" OnRowCancelingEdit="Gv_One_RowCancelingEdit" OnRowEditing="Gv_One_RowEditing" OnRowDeleting="Gv_One_RowDeleting" OnRowUpdating="Gv_One_RowUpdating" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None">

    <AlternatingRowStyle BackColor="White" />

    <Columns>
                    <asp:BoundField DataField="Id" HeaderText="ID" />
        <asp:BoundField DataField="Title" HeaderText="标题" />
        <asp:BoundField DataField="Content" HeaderText="内容" />
        <asp:BoundField DataField="Author" HeaderText="作者" />
        <asp:BoundField DataField="IsActived" HeaderText="是否启用" />
        <asp:BoundField DataField="IsDeleted" HeaderText="是否删除" />
        <asp:BoundField DataField="CreatedTime" HeaderText="创建时间" />
        <asp:BoundField DataField="UpdatedTime" HeaderText="更新时间" />
        <asp:BoundField DataField="Remarks" HeaderText="描述" />
       <asp:CommandField HeaderText="操作" ShowCancelButton="true" ShowDeleteButton="true"  ShowEditButton="false"/>
    </Columns>

    <EditRowStyle BackColor="#7C6F57" />
    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
    <RowStyle BackColor="#E3EAEB" />
    <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
    <SortedAscendingCellStyle BackColor="#F8FAFA" />
    <SortedAscendingHeaderStyle BackColor="#246B61" />
    <SortedDescendingCellStyle BackColor="#D4DFE1" />
    <SortedDescendingHeaderStyle BackColor="#15524A" />


</asp:GridView>
</asp:Content>
